<!-- 查询 content -->
{{ $contentSQL := "* FROM content WHERE id=? order by sortNo desc" }}

{{$contentID := printf "/single/%s" (lastURI .UrlPathParam) }}

{{ $content := selectOne "content" $contentSQL $contentID }}

<!DOCTYPE html>
<html>
<head>
  <title>{{ $content.Title }}</title>
  <meta name="description" content="{{ $content.Description }}" />
  <meta name="keyword" content="{{ $content.Keyword }}" />
  <style>
    .markdown p img{
      display: block;
      margin: auto;
    }
  </style>
  {{template "bodystart.html" $content }}

      <article class="markdown">
         {{ safeHTML $content.Content }}
       </article>

     
      <div class="book-comments"></div>
      <label for="menu-control" class="hidden book-menu-overlay"></label>
      
{{template "bodyend.html" $content }}

<style>
  .markdown pre {
    background:#ECEFF3;
  }
</style>